#!/bin/bash

readonly SERVER=120.77.96.17

if [ -d dist ]; then
    echo "dist exist ready to delete"
    rm -rf dist
fi


yarn build

l dist

tar -zcvf oms.tar.gz dist

scp oms.tar.gz root@$SERVER:/tmp

ssh root@$SERVER

